package JVM.DynamicProxy;

import java.lang.reflect.Field;

public class field2 {
    private int age=18;

    public static void main(String[] args) throws Exception{
        Class<?> aClass = Class.forName("JVM.DynamicProxy.field2");
        Field field = aClass.getDeclaredField("age");
        field2 field2=new field2();
        System.out.println(field2.age);
        field.set(field2,80);
        System.out.println(field2.age);
    }
}
